package cn.qicaiwang.open.qxyApi.entity;

import lombok.Data;

import java.util.Date;

@Data
public class ApiInvokeLog {
    private Long id;
    private String traceId;          // 请求追踪ID 10e38b6c2bb7478fb9e8fd0640e588cb
    private String apiName;         // API名称 工商基本信息
    private String apiPath;         // API路径 /v2/insight/info
    private String appKey;          // 应用Key default_app_key
    private Date invokeTime;        // 调用时间 2025-05-05 19:03:39
    private Long costTime;          // 耗时(毫秒) 10
    private String requestMethod;   // 请求方法 POST
    private String requestHeaders;  // 请求头(JSON)
    private String requestParams;   // 请求参数(JSON)
    private String requestBody;     // 请求体 {"name":"中国农发重点建设基金有限公司"}
    private String responseCode;    // 响应状态码 2000
    private String responseBody;   // 响应体 {"code":"2000","data":{"cancelDate":"","totalAssets":"","city":"北京市","businessEndTime":"","revokeDate":"","revokeReason":"","legalPersonType":"P","creditCode":"91110000717846134F","registerCurrency":"人民币","province":"北京","taxpayerType":"增值税一般纳税人","oneLevelName":"金融业","entityName":"中国农发重点建设基金有限公司","legalPerson":"孙兰生","businessAddress":"北京市西城区月坛北街甲2号","cancelReason":"","registerCode":"100000000045367","twoLevelName":"资本市场服务","registerDate":"2015-08-26","actualCapital":"5000000.0","businessScope":"非公开募集资金用于项目投资。（市场主体依法自主选择经营项目，开展经营活动；依法须经批准的项目，经相关部门批准后依批准的内容开展经营活动；不得从事国家和本市产业政策禁止和限制类项目的经营活动。）","checkDate":"2022-10-31","insuranceEmployeeCnt":"0人","registerDepartment":"北京市市场监督管理局","threeLevelCode":"J6730","organizationType":"企业","threeLevelName":"非公开募集证券投资基金","businessStartTime":"2015-08-26","registerAddress":"北京市延庆区湖南东路1号","registerCapital":"5000000.0","organizationCode":"717846134","organizationTypeCode":"1560501","entstatus":"1","oneLevelCode":"J0000","twoLevelCode":"J6700"},"success":true,"message":"成功","reqId":"70b2e14ff03747f5bc545cdf8f3e093f"}
    private Boolean success;       // 是否成功 1
    private String errorCode;      // 错误码
    private String errorMessage;   // 错误信息
    private String exceptionStack; // 异常堆栈
    private String clientIp;       // 客户端IP 192.168.0.2
    private String serverIp;       // 服务器IP 192.168.0.2
    private String userAgent;      // 用户代理
    private Date createTime;       // 创建时间
    private Date updateTime;       // 更新时间
}
